Terminal

Add Custom Resolution with xrandr

  Run “xrandr” to view display details   Run “cvt 1920 1080” to get a modeline such as below:   “1920x1080_60.00” 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync   Then add the above line to the –newmode command, example “sudo xrandr –newmode “1920x1080_60.00” 173.00 1920 2048 2248 2576 1080 1083 1088… read more »

Create ISO images in terminal

You can create an ISO image out of files in a folder using the ‘genisoimage‘ command Usage example: ‘genisoimage -o example.iso filedirectory’ ‘-o’ allows you to set the file output name, in this case example.iso ‘filedirectory’ is the name of the folder that will have its contents placed into the iso

Cannot manage PPAs in Ubuntu/Mint

When trying to add a PPA in terminal error occurs: Traceback (most recent call last): File “/usr/lib/linuxmint/mintSources/mintSources.py”, line 1455, in <module> codename = config_parser.get(“general”, “base_codename”) File “/usr/lib/python2.7/ConfigParser.py”, line 330, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: ‘general’   Or trying to access/manage PPAs via GUI similar errors occur or GUI closes the application window sudo… read more »

Restarting the Network Interface

The process of setting up a network can be quite lengthy, especially if you need to verify that your DHCP server is correctly assigning its IP addresses. A quicker way of restarting the network interface would be to use command lines. These commands should be executed as root or via sudo. The following commands are… read more »

How to install Arch

Once you boot into the Arch install iso, you’ll be automatically logged in as root user by default. You must need Internet connection in order to install Arch Linux. Check if your Internet connection is working: ping google.com Internet is working. Let us go ahead and partition the hard drive. To check the partition table,… read more »

Checking listening ports

A list of netstat commands to show listening ports in Linux: netstat -lntup – Shows all active server internet connections netstat -pnlt | grep ‘:port’ – Search the list of connections for a specific port netstat –listen – Shows all open connections nmap localhost – scans the targeted network for running services and their ports

Apt Package search

apt-cache search is a very rudimentary tool, basically implementing grep on package’s descriptions. It often returns too many results or none at all when you include too many keywords. In the case of APT, the reference Packages files are those located on Debian mirrors. That said, it would be very ineffective to go through the… read more »

Basic Terminal Use Notes

Link Handy subl file.txt opens a file in sublime text apt-cache search – search for available packages man – enter man before the command for the manual page | (above the enter key) is used to pipe command outputs to a command input http://write.flossmanuals.net/command-line/piping/ > can be added to a command such as tree to… read more »

Sidebar