master
Aney 6 years ago
parent 0610e0883d
commit e9827fac7f

@ -3,11 +3,30 @@
# If the display is plugged in, change to that. # If the display is plugged in, change to that.
# If the display is not plugged in, use the laptop display # If the display is not plugged in, use the laptop display
# tail /sys/class/drm/*/status # Connected/Disconnected monitors
if [ $1 == 1 ] if [ $1 == 1 ]
then then
xrandr --output VGA-1 --auto --primary --output LVDS-1 --off xrandr --output VGA-1 --auto --mode 1600x900 --primary --right-of LVDS-1 --output LVDS-1 --mode 1280x800 --auto
#xrandr --output VGA-1 --auto --mode 1600x900 --primary --output LVDS-1 --off
elif [ $1 == 2 ]
then
xrandr --output LVDS-1 --off --output DP-2 --primary --mode 1920x1080 --auto --left-of VGA-1 --output VGA-1 --auto --mode 1600x900
else else
xrandr --output LVDS-1 --auto --primary --output VGA-1 --off xrandr --output VGA-1 --off --output DP-2 --off --output LVDS-1 --auto --primary
fi fi
feh --bg-scale ~/pictures/wallpapers/mist_forrest.jpg feh --bg-scale ~/pictures/wallpapers/mist_forrest.jpg
# Switch Caps and Escape
/usr/bin/setxkbmap -option caps:swapescape
# I need this to be only for apple devices...
#/usr/bin/setxkbmap -option altwin:swap_alt_win
# Key Repeat Rate
# xset r rate 280 40 # Defaults
xset r rate 300 50

@ -1,29 +1,43 @@
#
# THIS HAS HALTED FOR NOW, CURRENTLY JUST USING MINEOS.
#
# Minecraft server install script, for when you're too lazy # Minecraft server install script, for when you're too lazy
# Written on Ubuntu # Written on Ubuntu
# Make minecraft user # Revision stolen from https://linuxize.com/post/how-to-install-minecraft-server-on-debian-9/
sudo useradd -d minecraft
# Delete the password # Make minecraft user, no password, home = /opt/minecraft
sudo passwd -d minecraft #sudo useradd -d minecraft
sudo useradd -r -m -U -d /opt/minecraft -s /bin/bash minecraft
# Switch to minecraft user # Switch to minecraft user
su minecraft sudo su - minecraft
# Make directory for minecraft server # Make directory for minecraft server
mkdir minecraft_server mkdir backups tools server
cd minecraft_server # backups = Backups
# tools = backup script, etc
# server = server
#mkdir minecraft_server
cd ~/server
# Install dependencies # Install dependencies
sudo apt install java-openjdk default-jre tmux curl wget sudo apt install java-openjdk default-jre tmux curl wget
# openjdk-11-jre-headless
# Find and download newest minecraft server.jar # Find and download newest minecraft server.jar
wget $(curl https://www.minecraft.net/en-us/download/server/ | grep -oP '(?<=a href=").*(server.jar)') # and put it into server directory
wget $(curl https://www.minecraft.net/en-us/download/server/ | grep -oP '(?<=a href=").*(server.jar)') -P ~/server
# Accept eula # Accept eula
echo "eula=true" >> eula.txt echo "eula=true" >> eula.txt
# Create the server script # Create the server script
echo "java -Xmx1024M -Xms1024M -jar server.jar nogui" >> start_server echo "java -Xmx1024M -Xms1024M -jar server.jar nogui" >> start_server
sudo chmod +x start_server sudo chmod +x start_server
# Set up mcron
# Create systemd startup for minecraft server # Create systemd startup for minecraft server

Loading…
Cancel
Save