Skip to content

linux for noob (me)

Guillaume Aldebert edited this page Nov 18, 2017 · 7 revisions

To run a gui app the from terminal

run kate while removing log: kate filename 2>/dev/null run kate and continue using the same terminal: kate filename 2>/dev/null &

To set 2560x1440 resolution

1. create file set2560x1440 with content:

#!/bin/sh
xrandr --newmode 2560x1440R 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync
xrandr --addmode HDMI-2 2560x1440R
xrandr --output HDMI-2 --mode 2560x1440R

2. register this file to run on session startup

alt + space : system > startup and shutdown > autostart > Add script... >
will create a sysmlink or copy to/home/guillaume/.config/autostart-scripts/set2560x1440

To edit the common directories: desktop, documents, downloads...

$HOME/.config/user-dirs.dirs

install ssh

sudo apt-get install openssh-server
sudo service ssh status

change config: sudo nano /etc/ssh/sshd_config

restart the service: sudo service ssh restart

configure the firewall to enable ssh
https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands
sudo ufw allow from 192.168.0.0/24 to any port 22

to get my ip address

get private IP
ip addr show
hostname -I

get public IP: dig +short myip.opendns.com @resolver1.opendns.com

xdrp: remote connection from windows

  1. install a windowing system compatible with xdrp: xubuntu-desktop:
    sudo apt install aptitude
    sudo aptitude update && sudo aptitude install xubuntu-desktop

  2. install xrdp: sudo apt-get install xrdp