Kali Linux – Adding A Custom Resolution

I recently had an issue where my new 4k Dell U2720Q wasn’t showing up at full resolution in Kali Linux. The monitor is connected to a Macbook Pro via USB-C and the VM is running on a VMware ESXi 6.7 U2 release. My monitor maxes out at 3840×2160 60 Hz. Kali was seeing the 60hz, but not the full 3840×2160, just 2560×1600.

I originally used xrandr and gtf, but I noticed that as soon as I clicked apply, the VM froze and became completely unresponsive. What I failed to realize was that in ESXi, the VM was set to something like 4 MB of video RAM. Zeroing in on this issue, I wasn’t sure how much video RAM to add.

I found this on Quora: https://www.quora.com/How-much-VRAM-do-I-need-to-run-4K-and-5K-smoothly and set my video RAM to around 130 MB just to be safe.

I then rebooted and followed the steps outlined here: https://gist.github.com/debloper/2793261

➜ ~ gtf 3840 2160 60
3840x2160 @ 60.00 Hz (GTF) hsync: 134.10 kHz; pclk: 712.34 MHz
Modeline "3840x2160_60.00" 712.34 3840 4152 4576 5312 2160 2161 2164 2235 -HSync +Vsync

➜ ~ xrandr --newmode "3840x2160_60.00" 712.34 3840 4152 4576 5312 2160 2161 2164 2235 -HSync +Vsync

➜ ~ xrandr --addmode Virtual1 "3840x2160_60.00"

➜ ~ xrandr --output Virtual1 --mode "3840x2160_60.00"

After following these steps, the new resolution 3840×2160 at 60 Hz showed up in the display manager. I selected, applied, and it worked.

Minecraft FTB Server – Ubuntu 14.04 Setup

A follow-up to my last post about Feed The Beast (FTB) and my own setup, which consists of:

  • OSX as a client
  • Ubuntu 14.04 as a server

The steps to get up and running are super simple. One thing to note, however. This is on a personal VM that I host at my house and it won’t be accessible to people outside my home network, so I don’t have a big need for strict security. If I did, my steps for getting up and running would be much more stringent.

Once we have our Ubuntu 14.04 VM image up and running, we will login as our non-privileged user and issue the following command to do some initial updating:

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove && sudo apt-get autoclean

Next, I run the following to get some essential utilities if they don’t already exist (open-vm-tools, since this is a VM. Also wget and unzip) as well as the openjdk version 8 JRE package, since running the client required running Java 8.

sudo apt-get install openjdk-8-jre open-vm-tools wget unzip

Now I am going to modify the unattended upgrades file so that I can keep the Ubuntu server fairly up to date without manual intervention.

sudo nano /etc/apt/apt.conf.d/50unattended-upgrades

Now I am going to download the Feed The Beast server files from the official site into our home folder.

wget https://media.forgecdn.net/files/2702/368/FTBUltimateReloadedServer_1.6.0.zip

mv FTBUltimateReloadedServer_1.6.0.zip feedthebeast/

unzip FTBUltimateReloadedServer_1.6.0.zip

Now go into the new folder and do the following:

chmod +x ServerStart.sh

./ServerStart.sh

The server will start and complain about an EULA not being acknowledged. Control + C to cancel the server start and…

nano eula.txt

Set to true, and re-run ServerStart.sh- one thing to notice is that the server lives and runs in the scope of the current window only. Once you close your connection the server dies. We can use screen to fix this.

screen -S ftb_server 
./ServerStart.sh
  • Detach screen: Control+A and d
  • See screen sessions: screen -ls
  • Re-attach to last screen: screen -r

I wanted to play a flat world with more layers, so I changed world mode to flat, used the Minecraft 101 Superflat Preset Generator site to generate a new world, SFTP’ed it into my server and replaced the current world and then passed the following commands to prevent mobs from spawning:

/difficulty peaceful
/gamerule doMobSpawning false