Skip to content

Instantly share code, notes, and snippets.

@sourcevault
Last active February 18, 2024 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sourcevault/520604164b4a9274bd467c1f892f64c3 to your computer and use it in GitHub Desktop.
Save sourcevault/520604164b4a9274bd467c1f892f64c3 to your computer and use it in GitHub Desktop.
interface=wlan1
#If this fails, try rt1871xdrv a
driver=nl80211
# Name of the new network: best use the hostname
ssid=wifipi
# Pick a channel not already in use
channel=6
# Change to b for older devices?
hw_mode=g
macaddr_acl=0
auth_algs=3
# Disable this to insure the AP is visible:
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase="Raspberry"
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ssh-copy-id -i ~/.ssh/id_ecdsa.pub pi@10.10.10.13
sudo apt-get install zsh curl git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
-------------------------------------------------------------------------------------
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
-------------------------------------------------------------------------------------
~/.zshrc
ZSH_THEME="custom"
plugins=(zsh-autosuggestions)
bindkey '\e[H' beginning-of-line
bindkey '\e[F' end-of-line
-------------------------------------------------------------------------------------
~/.oh-my-zsh/themes/custom.zsh-theme
PROMPT='%{$fg_bold[white]%}%M %(!.%{$fg[red]%}.%{$fg[green]%})%~%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%}${NEWLINE}'
NEWLINE=$'\n'
ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
ZSH_THEME_GIT_PROMPT_DIRTY=" ✖"
ZSH_THEME_GIT_PROMPT_CLEAN=" ✔"
-------------------------------------------------------------------------------------
chsh -s $(which zsh)
-------------------------------------------------------------------------------------
touch ~/.hushlogin
-------------------------------------------------------------------------------------
sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
-------------------------------------------------------------------------------------
192.168.1.93
sudo service ssh restart
bindkey '\e[H' beginning-of-line
bindkey '\e[F' end-of-line
As mentioned in one of the comments, try mounting the share using these options:
-o uid=500,gid=users,nounix
or
-o uid=500,gid=users,rw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment