Skip to content

Commit

Permalink
Kali: Fix rDesktop alias and XFCE4 default (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
g0tmi1k committed Apr 11, 2016
1 parent 6d8de8e commit eaebb58
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions kali-rolling.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
#-Metadata----------------------------------------------------#
# Filename: kali-rolling.sh (Update: 2016-04-08) #
# Filename: kali-rolling.sh (Update: 2016-04-11) #
#-Info--------------------------------------------------------#
# Personal post-install script for Kali Linux Rolling #
#-Author(s)---------------------------------------------------#
Expand Down Expand Up @@ -694,8 +694,7 @@ xdg-user-dirs-update
#--- Remove any old sessions
rm -f ~/.cache/sessions/*
#--- Set XFCE as default desktop manager
file=~/.xsession; [ -e "${file}" ] && cp -n $file{,.bkup}
echo "xfce4-session" > "${file}"
update-alternatives --set x-session-manager /usr/bin/xfce4-session #update-alternatives --config x-window-manager #echo "xfce4-session" > ~/.xsession


##### Cosmetics (themes & wallpapers)
Expand Down Expand Up @@ -1031,7 +1030,7 @@ grep -q '^## ssh' "${file}" 2>/dev/null \
grep -q '^## samba' "${file}" 2>/dev/null \
|| echo -e '## samba\nalias smb-start="systemctl restart smbd nmbd"\nalias smb-stop="systemctl stop smbd nmbd"\n' >> "${file}"
grep -q '^## rdesktop' "${file}" 2>/dev/null \
|| echo -e '## rdesktop\nalias rdesktop="rdesktop -z -P -g 100% -r disk:local=\"/tmp/\""\n' >> "${file}"
|| echo -e '## rdesktop\nalias rdesktop="rdesktop -z -P -g 90% -r disk:local=\"/tmp/\""\n' >> "${file}"
#--- Add in folders
grep -q '^## www' "${file}" 2>/dev/null \
|| echo -e '## www\nalias wwwroot="cd /var/www/html/"\n#alias www="cd /var/www/html/"\n' >> "${file}"
Expand Down

0 comments on commit eaebb58

Please sign in to comment.