Skip to content

Instantly share code, notes, and snippets.

View ikozyris's full-sized avatar
🐧
Using linux-next on debian

ikozyris ikozyris

🐧
Using linux-next on debian
View GitHub Profile
@ikozyris
ikozyris / nmcli.sh
Last active January 20, 2023 15:39
Connect to the internet with the nmcli tool
#!/bin/bash
sudo nmcli dev wifi connect <AP name (SSID)> password <password>
@ikozyris
ikozyris / ncurses-move_cursor.c
Last active January 20, 2023 14:51
Move the cursor with ncurses-C. Simple example to get started with the ncurses library.
#include <ncurses.h>
int main() {
initscr();
keypad(stdscr, TRUE);
int ch,y,x;
wmove(stdscr,0,0);
getyx(stdscr,y,x);
while(1)
{
@ikozyris
ikozyris / DE-WM-installer.sh
Last active July 27, 2022 22:20
Simple tool to install your prefered Window Manager and Enviroment for newbies (works on apt-based distros.
#! /bin/bash
#Check if whiptail is installed
if [ ! "$(which whiptail)" ]; then
echo -e "whiptail is not installed. Don't worry installing it now."
#Installs whiptail
apt install whiptail -y
fi
#For Desktop Manager
wm=$(whiptail --title "Window Manager" --inputbox "Enter Your the Desktop Manager you want to install gdm3, lightdm, sddm etc. : " 15 40 lightdm 3>&1 1>&2 2>&3)
exitstatus=$?